import request from '@/utils/request'

// 查询考核配置列表
export function listAssessConfig(query) {
  return request({
    url: '/system/assessConfig/list',
    method: 'get',
    params: query
  })
}

// 查询考核配置详细
export function getAssessConfig(id) {
  return request({
    url: '/system/assessConfig/' + id,
    method: 'get'
  })
}

// 新增考核配置
export function addAssessConfig(data) {
  return request({
    url: '/system/assessConfig',
    method: 'post',
    data: data
  })
}

// 修改考核配置
export function updateAssessConfig(data) {
  return request({
    url: '/system/assessConfig',
    method: 'put',
    data: data
  })
}

// 删除考核配置
export function delAssessConfig(id) {
  return request({
    url: '/system/assessConfig/' + id,
    method: 'delete'
  })
}
